<?php
	function oh_track_log($filename) {
		global $oh;
		$oh['track'] = array();
		$oh['track']['active'] = true;
		$oh['track']['filename'] = $filename;
		$header = ""
				. ""
				. ""
				. "starting at: ".time()."\n"
				. "-------------------------------------------------------------------\n";		
		file_put_contents($filename,$header);
	}
	
	function oh_track_function() {
		oh_track_save();
	}
	
	function oh_track_method() {
		oh_track_save();	
	}
	
	function oh_track_save($string="") {
		global $oh;
		if (isset($oh['track'])) {
			$line = '[".date("G:i:s")."] oh("'.$string.'")';
			file_put_contents($oh['track']['filename'],$line,FILE_APPEND);
		}	
	}
	
	function oh_track_dump() {
		global $oh;
		echo '<pre>';
		echo file_get_contents($oh['track']['filename']);
		echo '</pre>';
	}
